class PaginationResultVO:
    def __init__(self, total_count=None, page_size=None, page_no=None, page_total=None, list=None):
        self.total_count = total_count
        self.page_size = page_size
        self.page_no = page_no
        self.page_total = page_total
        self.list = list

    def to_dict(self):
        list_dict = [item.to_dict() if hasattr(item, 'to_dict') else item for item in self.list]

        return {
            "totalCount": self.total_count,
            "pageSize": self.page_size,
            "pageNo": self.page_no,
            "pageTotal": self.page_total,
            "list": list_dict
        }
